package com.jmz.apt.api.service.auth;

import com.jmz.apt.api.dao.TokenDao;
import com.jmz.apt.api.dto.impl.AdminTokenDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by fanglexue on 2019/10/28.
 */
@Service
public class Token {

    @Autowired
    TokenDao tokenDao;


    public List<AdminTokenDto> findAdminUserAsRoleByAdminId(Integer id){
        return tokenDao.findAdminUserAsRoleByAdminId(id);
    }
}
